package soap.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.stereotype.Service;
import soap.dao.ImageDtoRepository;
import soap.pojo.ImageDto;
import soap.service.ImageDtoMongoService;

import java.util.List;
import java.util.Set;

/**
 * Created by ZhangPY on 2021/11/16
 * Belong Organization OVERUN-9299
 * overun9299@163.com
 * Explain: ImageDtoMongoServiceImpl
 */
@Service
public class ImageDtoMongoServiceImpl implements ImageDtoMongoService {

    @Autowired
    private ImageDtoRepository imageDtoRepository;

    @Override
    public List<ImageDto> getImageByKeyFromMongo(String keyWord) {
        return imageDtoRepository.findAll();
    }
}
